package com.oncliedisk.administrator.model;

import java.io.Serializable;

/**
 * Created by Administrator on 2015/12/17.
 */
public class FileTaskModel implements Serializable{

    //正在下载
    public static final int STATE_DOWNING = 1;
    //等待下载
    public static final int STATE_WAIT_DOWN = 2;
    //下载完成
    public static final int STATE_DOWN_SUCCESS = 3;
    //下载失败
    public static final int STATE_DOWN_FAIL = 4;
    //下载暂停
    public static final int STATE_DOWN_STOP = 5;
    //文件大小
    private String size;
    //进度
    private String progress;
    //ID
    private int id;
    //文件名
    private String fileName;

    private String localPath; //本地路径
    //状态
    private int state;
    //类型
    private String type;
    //下载路径或者选择要上传的路径
    private String path;
    //SHAL值
    private String shal;

    private String currSize; //当前值

    private boolean isLoading; //正在加载

    public String getLocalPath() {
        return localPath;
    }

    public void setLocalPath(String localPath) {
        this.localPath = localPath;
    }

    public boolean isLoading() {
        return isLoading;
    }

    public void setIsLoading(boolean isLoading) {
        this.isLoading = isLoading;
    }

    private String taskType; //上传还是下载类型

    private String date; //下载完成时间

    public String getDate() {
        return date;
    }

    public String getCurrSize() {
        return currSize;
    }

    public void setCurrSize(String currSize) {
        this.currSize = currSize;
    }

    public void setDate(String date) {
        this.date = date;
    }

    public String getTaskType() {
        return taskType;
    }

    public void setTaskType(String taskType) {
        this.taskType = taskType;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public static int getStateDowning() {
        return STATE_DOWNING;
    }

    public static int getStateWaitDown() {
        return STATE_WAIT_DOWN;
    }

    public static int getStateDownSuccess() {
        return STATE_DOWN_SUCCESS;
    }

    public static int getStateDownFail() {
        return STATE_DOWN_FAIL;
    }

    public static int getStateDownStop() {
        return STATE_DOWN_STOP;
    }

    public String getSize() {
        return size;
    }

    public void setSize(String size) {
        this.size = size;
    }

    public String getProgress() {
        return progress;
    }

    public void setProgress(String progress) {
        this.progress = progress;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getFileName() {
        return fileName;
    }

    public void setFileName(String fileName) {
        this.fileName = fileName;
    }

    public int getState() {
        return state;
    }

    public void setState(int state) {
        this.state = state;
    }


    public String getPath() {
        return path;
    }

    public void setPath(String path) {
        this.path = path;
    }

    public String getShal() {
        return shal;
    }

    public void setShal(String shal) {
        this.shal = shal;
    }
}
